﻿using System;
using Abp.Application.Services.Dto;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace ARchGL.Platform.Dtos
{
    /// <summary>
    /// 文件夹信息 InputModel
    /// </summary>
    public class CreateFolderInput : EntityDto<Guid>
    {
        /// <summary>
        /// 主键标识（项目/人员等等）
        /// </summary>
        public Guid? PrimaryId { get; set; }
        /// <summary>
        /// 《检验批》验收节点标识
        /// </summary>
        public Guid PrimaryId1 { get; set; }
        ///// <summary>
        ///// 场景标识
        ///// </summary>
        //public Guid PrimaryId2 { get; set; }
        /// <summary>
        /// 上级分类
        /// </summary>
        public Guid? ParentId { get; set; }
        /// <summary>
        /// 目录/文件 名称
        /// </summary>
        [Required(ErrorMessage = "名称不能为空，请重新输入")]
        public string Name { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 节点类型
        /// </summary>
        public EnumDocumentPType PType { get; set; }

        /// <summary>
        /// 透传参数
        /// </summary>
        public string TransInfo { get; set; }

        /// <summary>
        /// 模板标识
        /// </summary>
        public Guid TemplateId { get; set; }

        /// <summary>
        /// 验收节点下的子检验批项名称
        /// </summary>
        public List<CreateFolderInput> ChildList { get; set; }

        /// <summary>
        /// MPP进度相关参数
        /// </summary>
        public string MppRequest { get; set; }
        public string MppResponse { get; set; }

        public DateTime? MppCreateTime { get; set; }
    }
}
